package org.bulu.project.system.plugin.redis.annotation;

import java.lang.annotation.*;

/**
 * Redis注解
 *
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@Documented
public @interface RedisAnnotation {
    /**
     * 过期时间，默认60s
     * @return
     */
    long expire() default 1 * 60 * 1000;

    /**
     * 缓存标识name
     * @return
     */
    String name() default "";
}